package com.ruoyi.controller.admin.test;

import cn.hutool.core.lang.Dict;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test")
public class Demo extends BaseController {
    @RequestMapping("getUserInfo")
    public AjaxResult getUserInfo() throws InterruptedException {
        Thread.sleep(2000);
        Dict dict = new Dict();
        dict.put("name", "张三1");
        dict.put("age", 12);
        dict.put("gender", "男");
        return AjaxResult.success(dict);
    }
}

